home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-01 | 4.1 KB | 201 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: DrawSI.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_DrawSI_xh
- #define SOM_DrawSI_xh
-
- class DrawSI;
-
- #define DrawSI_MajorVersion 0
- #define DrawSI_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
-
-
- class SIHelperAbs;
-
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODSemanticInterface_xh
- #include <SemtIntB.xh>
- #endif
-
- #ifndef DrawSI_API
- #define DrawSI_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODSemanticInterface;
- class ODMessageInterface;
- class ODSession;
- class ODPart;
- class ODDesc;
- class ODAppleEvent;
- class ODOSLToken;
- class DrawSI;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define DrawSICClassData DrawSIClassData
- #define DrawSINewClass(major,minor) somNewVersionedClassReference(DrawSI,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define DrawSIMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the DrawSI class object, and the methods it introduces. */
- SOMEXTERN struct DrawSIClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken InitCPlusSemanticInterface;
- somMToken GetSIHelper;
- } SOMDLINK DrawSIClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(DrawSI_Class_Source) && !defined(SOM_Module_drawsi_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list DrawSIClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for DrawSI Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_DrawSI_InitCPlusSemanticInterface)(DrawSI *somSelf, Environment *ev,
- ODPart* base,
- SIHelperAbs* helper,
- ODSession* session);
- typedef SIHelperAbs* (* SOMLINK somTD_DrawSI_GetSIHelper)(DrawSI *somSelf, Environment *ev);
- }
-
- #endif /* DrawSI_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for DrawSI
- */
- class DrawSI : public ODSemanticInterface
- {
- public:
-
- // DrawSI::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for DrawSI, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(DrawSI);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(DrawSI);
- #endif
- }
-
- // DrawSI::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: InitCPlusSemanticInterface */
- void InitCPlusSemanticInterface(Environment *ev,
- ODPart* base,
- SIHelperAbs* helper,
- ODSession* session)
- {
- SOM_ResolveD(this,DrawSI,DrawSI,InitCPlusSemanticInterface)
- (this,ev,base,helper,session);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetSIHelper */
- SIHelperAbs* GetSIHelper(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- SIHelperAbs* __somResult =
- SOM_ResolveD(this,DrawSI,DrawSI,GetSIHelper)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,DrawSI,DrawSI,GetSIHelper)
- (this,ev);
- #endif
- }
-
- }; /* DrawSI */
-
-
-
- #endif /* SOM_DrawSI_xh */
-